package com.kinyx.framework.utils;

import org.junit.Assert;
import org.junit.Test;

import lombok.AllArgsConstructor;

@AllArgsConstructor
public class KStringUtils_Tester_trimToNull {

	@Test
	public void test() {
		Assert.assertEquals(null, KStringUtils.trimToNull(null));
		Assert.assertEquals(null, KStringUtils.trimToNull("null"));

		Assert.assertEquals("", KStringUtils.trimToNull(""));
		Assert.assertEquals("", KStringUtils.trimToNull(" "));

		Assert.assertEquals("null", KStringUtils.trimToNull(" null "));
		Assert.assertEquals("foo", KStringUtils.trimToNull("foo"));
		Assert.assertEquals("foo", KStringUtils.trimToNull(" foo "));
	}

}
